package com.example.ordermealservice.entity;

import java.lang.reflect.Field;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2023-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderDish implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    private String dishName;

    private String dishPicture;

    private BigDecimal dishPrice;

    /**
     * 分钟
     */
    private Integer dishTime;

    private Integer dishNumber;

    private String dishDescription;

    /**
     * 1表示在售 0表示库存为0或停售
     */
    private Integer dishStatus;

    //一级分类
    private String dishClassification;

    //二级分类
    private String dishSubclassification;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    //乐观锁
    @Version
    private Integer version;
}
